package cn.dada.dadarecipes.community.favorites.mapper;

import cn.dada.dadarecipes.community.article.pojo.vo.MyArticleVO;
import cn.dada.dadarecipes.community.favorites.pojo.dto.FavoritesRemoveParam;
import cn.dada.dadarecipes.community.favorites.pojo.dto.FavoritesSaveParam;
import cn.dada.dadarecipes.community.favorites.pojo.entity.Favorites;
import cn.dada.dadarecipes.community.favorites.pojo.vo.FavoritesVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FavoritesMapper {
    List<FavoritesVO> selectFavorites(Long userId);
    Long selectFavoritesArticleId(FavoritesSaveParam favoritesSaveParam);
    List<MyArticleVO> selectLikeArticle(Long userId);

    Boolean insertFavorites(Favorites favorites);

    Boolean deleteFavorites(FavoritesRemoveParam favoritesRemoveParam);

}
